for i in range(3):
#     user = input("请输入用户名：")
#     password = input("请输入密码：")
#     if user == "root" and password == "123456":
#         print("登陆成功")
#         break
#     else:
#         if i<2 :
#             print("输入错误，还剩%d次机会"%(2-i))
#         else:
#             print("请稍后再试")
# a=10
# for i in range(3):
#     str=input("请输入一个数字:")
#     if str.isdigit():
#         str=int(str)
#         if i<2:
#             if a==str:
#                 print("猜对了,值为%d,猜了%d次"%(a,2-i))
#             else:
#                 if a>str:
#                     print("猜小了,猜了%d次"%(2-i))
#                 else:
#                     print("猜大了,猜了%d次"%(2-i))
#         else:
#             print("次数已经超3次！")
#     else:
#         print("输入不合法")
str=input("请输入一个数字：")
if str.isnumeric():
    str = int(str)
    if 0<=str<=100:
        if 85<=str<=100:
            print("成绩优秀")
        elif 60<=str<85:
            print("成绩良好")
        else :
            print("成绩不及格")
    else:
        if str>100:
            print("请输入小于0的数")
else :
    print("输入不合法")
# list=[]
# for i in range(100,500):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else :
#         list.append(i)
#
# print(list)
# sum=0
# for i in range (10,51):
#     if i%1==0:
#          sum=sum+i
# print(sum)